﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true" CodeBehind="MStuNew.aspx.cs" Inherits="WebSystem.MStuNew" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .auto-style1 {
        width: 100%;
    }
    .auto-style2 {
        width: 596px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
<br />
<br />
<table class="auto-style1">
    <tr>
        <td>&nbsp;</td>
        <td class="auto-style2">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Sno" DataSourceID="SqlDataSource1">
                <Columns>
                    <asp:BoundField DataField="Sno" HeaderText="学号" ReadOnly="True" SortExpression="Sno" />
                    <asp:BoundField DataField="Sname" HeaderText="姓名" SortExpression="Sname" />
                    <asp:BoundField DataField="Classno" HeaderText="班级" SortExpression="Classno" />
                    <asp:BoundField DataField="Dno" HeaderText="学院编号" SortExpression="Dno" />
                </Columns>
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dhd2014115121ConnectionString %>" SelectCommand="SELECT * FROM [Student]"></asp:SqlDataSource>
        </td>
        <td>
            <asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="返回" />
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td class="auto-style2">&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
</table>
</asp:Content>
